import { defineStore } from "pinia"

export const useSettingStore = defineStore("setting", {
  state: () => {
    return {
      layoutMode: localStorage.getItem("layoutMode") || "Classic",
    }
  },
  actions: {
    setLayoutMode(layoutMode) {
      this.layoutMode = layoutMode
      localStorage.setItem("layoutMode", layoutMode)
    },
  },
})
